package com.pureut.production.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pureut.production.domain.ProcessCardLog;
import com.pureut.production.domain.dto.ProcessCardLogDto;
import com.pureut.production.domain.dto.TitleDataDto;
import com.pureut.production.domain.vo.ProcessCardLogVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: YSL
 * @Date: 2023-02-16 14:42:27
 * @Desc: 工艺卡日志
 */
@Mapper
public interface ProcessCardLogMapper extends BaseMapper<ProcessCardLog> {

    /**
     * 查询工艺卡日志列表
     * @param processCardLogVo
     * @return
     */
    List<ProcessCardLogDto> selectProcessCardLogList(ProcessCardLogVo processCardLogVo);

    /**
     * 根据id查出工艺卡日志
     * @param id
     * @return
     */
    ProcessCardLogDto selectCard(Long id);

    /**
     * 根据多个id获取数据
     */
    List<ProcessCardLogDto> getDataByIdStr(@Param("idList") List<String> idList);

    /**
     * 查询工艺卡日志列表(导出查询)
     * @param processCardLogVo
     * @return
     */
    List<ProcessCardLogDto> selectProcessCardLogListOut(ProcessCardLogVo processCardLogVo);

    /**
     * 获取动态表头对应数据及设备信息
     */
    List<TitleDataDto> getTitleDataList(Long id);
}
